package as3
{
import flash.events.EventDispatcher;
/**
 * @author daichangxin
 */
public class Subject extends EventDispatcher
{
	private var _userName:String;
	private var _level:uint;
	private var _golden:uint;
	
	public function setData(obj:Object):void
	{
		_userName = obj.userName;
		_level = obj.level;
		_golden = obj.golden;
		
		this.dispatchEvent(new UserInfoEvent(UserInfoEvent.USER_INFO_CHANGE, _userName, _level, _golden));
	}
}
}
